package com.maimao.model.goods.input;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 修改规格组顺序
 *
 * @author MaoLin Wang
 * @date 2021/6/3 下午3:01
 */
@Data
public class SpecOrderInput {

    /**
     * 实体id
     */
    @NotNull(message = "请选择要修改的规格组")
    @Min(value = 1, message = "非法参数")
    private Integer id;

    @NotNull(message = "请选择三级分类")
    @Min(value = 1, message = "分类非法")
    private Integer cid3;

    @NotNull(message = "请选择上移还是下移")
    private Boolean up;
}
